package {
	import com.rational.serialization.json.JSON;
	import flash.utils.ByteArray;
	import org.flexunit.Assert;
	
	public class JSONFileTest {
		[Embed("test0.json", mimeType="application/octet-stream")]
		private var Test0:Class;

		[Embed("test1.json", mimeType="application/octet-stream")]
		private var Test1:Class;
		
		[Embed("test2.json", mimeType="application/octet-stream")]
		private var Test2:Class;

		[Embed("test3.json", mimeType="application/octet-stream")]
		private var Test3:Class;

		[Test(description="test0.json")]
		public function test0():void {
			var test:ByteArray = new Test0();
			JSON.decode(test.toString());
			Assert.assertTrue(true);
		}
		
		[Test(description="test1.json")]
		public function test1():void {
			var test:ByteArray = new Test1();
			JSON.decode(test.toString());
			Assert.assertTrue(true);
		}
		
		[Test(description="test2.json")]
		public function test2():void {
			var test:ByteArray = new Test2();
			JSON.decode(test.toString());
			Assert.assertTrue(true);
		}

		[Test(description="test3.json")]
		public function test3():void {
			var test:ByteArray = new Test3();
			JSON.decode(test.toString());
			Assert.assertTrue(true);
		}
	}
}